import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '有赞应用名称',
    dataIndex: 'youzanAppName',
    width: 120,
  },
  {
    title: '客户端Id',
    dataIndex: 'youZanClientId',
    width: 150,
  },
  {
    title: '有赞密钥',
    dataIndex: 'youZanClientSecret',
    width: 150,
  },
  {
    title: '店铺Id',
    dataIndex: 'youZanGantId',
    width: 120,
  },
  {
    title: '创建日期',
    dataIndex: 'createTime',
    width: 100,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'youzanAppName',
    label: '有赞应用名称',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '有赞应用名称',
    field: 'youzanAppName',
    component: 'Input',
    required: true,
  },
  {
    label: '客户端Id',
    field: 'youZanClientId',
    component: 'Input',
    required: true,
  },
  {
    label: '有赞密钥',
    field: 'youZanClientSecret',
    component: 'Input',
    required: true,
  },
  {
    label: '店铺Id',
    field: 'youZanGantId',
    component: 'Input',
    required: true,
  },
];
